You are here: Symbol Reference > Dew Namespace > Dew.Math Namespace > Classes > VectorInt Structure > VectorInt Methods > BinarySearch Method > VectorInt.BinarySearch Method ([In] int)
Dew Math for .NET
ContentsIndexHome
PreviousUpNext
VectorInt.BinarySearch Method ([In] int)

Finds a match for X in object values using binary search.

Syntax
C#
Visual Basic
public int BinarySearch([In] int X);

the index of last matched element. If no matching elements are found, the result is -1.

The data in the vector must be sorted in ascending order for this function to work correctly.

Copyright (c) 1999-2024 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!